package com.ag.utils;

import java.util.Objects;

/**
 * 
 * title: ThreeConsumer.java 
 * description
 *
 * @author rplees
 * @email rplees.i.ly@gmail.com
 * @version 1.0  
 * @created Mar 24, 2020 4:03:06 PM
 */
@FunctionalInterface
public interface ThreeConsumer<T, U, K> {
	void accept(T t, U u, K k);
	
	default ThreeConsumer<T, U, K> andThen(ThreeConsumer<? super T, ? super U, ? super K> after) {
        Objects.requireNonNull(after);

        return (l, r, k) -> {
            accept(l, r, k);
            after.accept(l, r, k);
        };
    }
}
